Optimal. Leaf size=103 \[ \frac{\log (x) \sqrt{a^2+2 a b x+b^2 x^2} (a B+A b)}{a+b x}-\frac{a A \sqrt{a^2+2 a b x+b^2 x^2}}{x (a+b x)}+\frac{b B x \sqrt{a^2+2 a b x+b^2 x^2}}{a+b x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.042111, antiderivative size = 103, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.069, Rules used = {770, 76} \[ \frac{\log (x) \sqrt{a^2+2 a b x+b^2 x^2} (a B+A b)}{a+b x}-\frac{a A \sqrt{a^2+2 a b x+b^2 x^2}}{x (a+b x)}+\frac{b B x \sqrt{a^2+2 a b x+b^2 x^2}}{a+b x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 770
Rule 76
Rubi steps
\begin{align*} \int \frac{(A+B x) \sqrt{a^2+2 a b x+b^2 x^2}}{x^2} \, dx &=\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int \frac{\left (a b+b^2 x\right ) (A+B x)}{x^2} \, dx}{a b+b^2 x}\\ &=\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int \left (b^2 B+\frac{a A b}{x^2}+\frac{b (A b+a B)}{x}\right ) \, dx}{a b+b^2 x}\\ &=-\frac{a A \sqrt{a^2+2 a b x+b^2 x^2}}{x (a+b x)}+\frac{b B x \sqrt{a^2+2 a b x+b^2 x^2}}{a+b x}+\frac{(A b+a B) \sqrt{a^2+2 a b x+b^2 x^2} \log (x)}{a+b x}\\ \end{align*}
Mathematica [A] time = 0.0185067, size = 44, normalized size = 0.43 \[ \frac{\sqrt{(a+b x)^2} \left (x \log (x) (a B+A b)-a A+b B x^2\right )}{x (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.011, size = 42, normalized size = 0.4 \begin{align*}{\frac{{\it csgn} \left ( bx+a \right ) \left ( A\ln \left ( bx \right ) xb+B\ln \left ( bx \right ) xa+Bb{x}^{2}+aBx-aA \right ) }{x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.31371, size = 57, normalized size = 0.55 \begin{align*} \frac{B b x^{2} +{\left (B a + A b\right )} x \log \left (x\right ) - A a}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.549306, size = 19, normalized size = 0.18 \begin{align*} - \frac{A a}{x} + B b x + \left (A b + B a\right ) \log{\left (x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.31414, size = 63, normalized size = 0.61 \begin{align*} B b x \mathrm{sgn}\left (b x + a\right ) +{\left (B a \mathrm{sgn}\left (b x + a\right ) + A b \mathrm{sgn}\left (b x + a\right )\right )} \log \left ({\left | x \right |}\right ) - \frac{A a \mathrm{sgn}\left (b x + a\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]